<div class="row">
	<div class="alert callout">Shows all the Students And Subject Schedule for This Room and Section</div>
	<fieldset>
		<legend class="label">Descriptions</legend>
		<table>
			<thead>
				<tr>
					<td>Section Name</td>
					<td>Room/Section Adviser</td>
					<td>Name of Room</td>
					<td>Room Description</td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td><?=$room_sect_profile->section_name;?></td>
					<td><?=$room_sect_profile->adviser_name;?></td>
					<td><?=$room_sect_profile->room_name;?></td>
					<td><?=$room_sect_profile->room_desc;?></td>
				</tr>
			</tbody>
		</table>
	</fieldset>
	<div>
	<?if(isset($system_message))echo $system_message;?>
	<fieldset>
		<legend class="label">Students Enrolled</legend>
	<?if(!empty($students_enrolled)):?>
	<table class="data-table">
		
			<thead class="tabular-head">
			<tr>
				<th>Students Name</th>
			</tr>
			</thead>
			<tbody class="tabular">
			<?foreach($students_enrolled as $stud):?>
				<tr>
					<td><?=ucwords($stud->students_name);?></td>
					<td><a href="<?=site_url('profile/student/'.$stud->enrollment_id);?>" target="_blank" class="data-link">view Profile-Subject-Grades</a></td>
				</tr>
			<?endforeach;?>
			</tbody>
	</table>
	<?else:?>
		<div class="alert"> No Students Enrolled on This Room And Section</div>
	<?endif;?>
	</fieldset>
	
	<fieldset>
		<legend class="label">Subjects Schedule</legend>
	<?if(!empty($subject_schedule)):?>
		<table class="data-table">
			<thead class="tabular-head">
			<tr>
				<th>Subject</th>
				<th>Teacher</th>
				<th>Time</th>
				<th>Day</th>
			</tr>
			</thead>
			<tbody class="tabular">

			<?foreach($subject_schedule as $s):?>
				<tr>
					<td><?=$s->subj_desc;?></td>
					<td><?=$s->teacher;?></td>
					<td><?=$s->time_from;?> - <?=$s->time_to;?></td>
					<td><?=$s->day;?></td>
				</tr>
			<?endforeach;?>
			</tbody>
		</table>
	<?else:?>
		<div class="alert">No Subjects are Currently set On this Room and Section</div>
	<?endif;?>
	</fieldset>
	</div>
</div>
